import battlegui.Position;
import battlegui.PlayerID;

/**
 * The test class TestSchot.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class TestSchot extends junit.framework.TestCase
{
    private Position place;
    private Schot schot;
    
    /**
     * Default constructor for test class TestSchot
     */
    public TestSchot()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    protected void setUp()
    {
           place = new Position(15, 2);
           schot = new Schot(place, PlayerID.HUMAN_PLAYER_1, true);
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    protected void tearDown()
    {
    }
    
    /**
     * Test de methode getPlayerID
     */
    public void testgetPlayerID()
    {
        assertEquals(PlayerID.HUMAN_PLAYER_1, schot.getPlayerID());
    }
    
     /**
     * Test de methode getPosition
     */
    public void testgetPosition()
    {
        assertEquals("Position(x=15, y=2)", schot.getPosition().toString());
    }
    
    /**
     * Test de methode getPosition
     */
    public void testgetHit()
    {
        assertEquals(true, schot.getHit());
    }
}
